//扫描按需加载
base.scanpush();


require.async('bdshare',function(bdshare){
  bdshare([{
    tag : 'share_news_detail',  
    bdSize : 16,      //图标尺寸, 16｜24｜32
    bdStyle : '0'     //图标类型, 0｜1｜2
  }])
});

//字号调节
var $speech=$('.myart:visible'),
   defaultsize=parseFloat($speech.css('font-size'));
if($speech.length){
  //window.localStorage &&  localStorage.getItem('fz') && $speech.css('font-size', localStorage.getItem('fz')+'px');
  $('body').on('click','#switcher a',function(){
    var num=parseFloat($speech.css('font-size'))
    switch(this.id){
      case'small':num/=1.4
      break
      case'big':num*=1.4
      break
      default:num=defaultsize
    }
    $speech.css('font-size',num+'px')
    //window.localStorage && localStorage.setItem('fz',num);
  })
}